fix(react-form-start): replace deprecated inputValidator with validator#2230
fix(react-form-start): replace deprecated inputValidator with validator#2230smorimoto wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (4)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughRenames the ChangesValidator rename and dependency updates
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
TanStack Start has deprecated createServerFn().inputValidator() in favour of .validator(). Update the react-form-start package, example, and SSR docs accordingly, and bump the @tanstack/react-start peer dependency to ^1.168.27 where the new API is available.
9c8f0d1 to
f25ed02
Compare
Summary
TanStack Start has deprecated
createServerFn().inputValidator()in favour of.validator(). Projects using@tanstack/react-form-startwere seeing a build-time deprecation warning from the Start compiler.This PR updates the library, example, and SSR documentation to use the new API, and bumps the
@tanstack/react-startpeer dependency to^1.168.27, which includes thevalidator()method.Changes
.inputValidator()with.validator()increateServerValidate.tsx@tanstack/react-startto^1.168.27inreact-form-startand the examplepnpm-lock.yamland addminimumReleaseAgeExcludeentries for the updated TanStack packagesTest plan
@tanstack/react-formand@tanstack/react-form-startsuccessfullySummary by CodeRabbit